package com.defonds.scheduler.jobs;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import com.defonds.scheduler.util.AnotherBean;

public class FirstScheduledJob extends QuartzJobBean {
	
	private AnotherBean anotherBean;
	
	@Override
	protected void executeInternal(JobExecutionContext paramJobExecutionContext) throws JobExecutionException {
		
		 System.out.println("I am FirstScheduledJob");  
	        this.anotherBean.printAnotherMessage();  
	}
	
	public void setAnotherBean(AnotherBean anotherBean) {  
        this.anotherBean = anotherBean;  
    }  

}
